<extend name="Layout/index" />
<block name="breadcrumb-01">
	<li>
		<i class="icon-home home-icon"></i>
		<a href="#">首页</a>
	</li>
	<li class="active">经验管理</li>
</block>
<block name="search">
<!-- <div class="nav-search" id="nav-search">
    <form class="form-search" action="<{:U('User/index')}>" method="get">
        <span class="input-icon" >
            <input type="text" placeholder="请输入用户名" class="nav-search-input" id="nav-search-input" autocomplete="off" name="name" />
            <i class="icon-search nav-search-icon"></i>
        </span>
    </form>
</div> -->
</block>
<block name="resource">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/classify.css">
	<link rel="stylesheet" href="__PUBLIC__/my.css" />
</block>
<block name="breadcrumb-02">
	<div class="container" id="bg2">
	<if condition="$heiheihei eq '全部分类'">
	<div id="box2"><span id="yiji"><{$heiheihei}></span></div><hr>
	<else />
	    <div id="box2"><span id="yiji">
	    <if condition="($pname eq null) AND ($ppname eq null)"><{$classify}><elseif condition="($pname neq null) AND ($ppname neq null)" /><{$ppname}><else /><{$pname}></if><{$heiheihei}>
	    </span><span id = "erji"><if condition="($pname neq null) AND ($ppname eq null)"><a href="">-><{$classify}></a><else /><a href="<{:U('classify/index',array('id'=>$pid))}>"><{$pname}></a></if></span><span id = "sanji"><if condition="$ppname neq null"><a href="">-><{$classify}></a></if></span></div>
	    <div id="box3">
	        <ul>
	            <li><a href="<{:U('Classify/index2')}>">全部</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=56')}>">美食/营养</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=57')}>">手工/爱好</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=58')}>">健康/养生</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=59')}>">职场/理财</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=60')}>">母婴/教育</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=61')}>">游戏/数码</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=62')}>">生活/家居</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=63')}>">运动/户外</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=64')}>">情感/交际</a></li><hr>
	            <li><a href="<{:U('Classify/index?id=65')}>">时尚/美容</a></li>
	        </ul>
	    </div><hr>
	    <div id="box4">
	        <ul>
	            <volist name="data2" id="class_vo">
	            <li><a href="<{:U('classify/index',array('id'=>$class_vo['id']))}>"><{$class_vo.name}></a></li>
	            </volist>
	        </ul>
	    </div><hr>

	    </if>
	    <div class="row" id="box5">
	        <div class="col-md-12">
	            <div class="row">
	            <volist name="content" id="vo">
	              <div class="col-sm-4 col-md-3">
	                <div class="thumbnail au">
	                  <a href="<{:U('home/Content/index',array('id'=>$vo['id']))}>" target="_blank"><img src="__ROOT__<{$vo._s_picture}>" onerror="onerror=null;src='__PUBLIC__/Uploads/error.jpg'"
></a>
	                  <a href="<{:U('home/Content/index',array('id'=>$vo['id']))}>" target="_blank"><p class="title "><b><{$vo.title}></b></p></a>
	                  

	                  <div class="heiheihei">
	                  	<a href="<{:U('Home/Pers/index',array('uid'=>$vo['uid']))}>" target="_blank"><span><{$vo.uname}></span></a
	                  	<span >赞</span><{$vo.g_count}>
	                  	<span >收藏</span><{$vo['collector']}>
	                  	<span class="pull-right "><button class="btn-danger btn-xs del" onclick="del(<{$vo.id}>,this)">删除</button></span>
	                  		
	                  </div>
	                  
	                </div>
	              </div>
	            </volist>
	            </div><!-- end row -->
	        </div>

	    </div>
	    <div>
	    	
	    </div>
	</div><!-- end container -->
	<div class="green-black"><{$page}><div/>
</block>
<block name="jquery">
	<script src="__PUBLIC__/js/holder.min.js"></script>
	<script type="text/javascript">

	    $('#yiji').click(function(){
	        $('#box3').slideToggle(300);
	        $('#span2').toggle(100);
	        $('#span3').toggle(100);
	    });

	    $('#box3 li').bind({
	            'mouseover':function(){
	                $(this).css('text-shadow','1px 1px 1px #54C440');
	            },
	            'mouseout':function(){
	                $(this).css('text-shadow','');
	            },
	        })
	    
	</script>
	<script type="text/javascript">
		function del(id,obj){
			console.log(id);
			var div = $(obj).parent().parent().parent().parent();
			$.ajax({
			    type:'get',
			    url:'<{:U('Classify/del')}>',
			    data:{'id':id},
			    success:function(data){
				    if (data){
				    	alert('删除失败');
				    }else{
				    	div.remove();
				    }
			    }
			});
			return false;
		}

	</script>
</block>